//
//  UITextField+Limit.h
//  Live
//
//  Created by goldeneye on 2017/8/22.
//  Copyright © 2017年 goldeneye by smart-small. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    LIMITVALIDATION_TYPE_NUM_VALIDATED = 0,//数字
    LIMITVALIDATION_TYPE_DECIMAL_VALIDATED = 1,//小数
    LIMITVALIDATION_TYPE_LETTERNUM_VALIDATED = 2,//数字或字母
    LIMITVALIDATION_TYPE_NONE_VALIDATED,//不设置类型

}LimitValidationType;


@interface UITextField (Limit)

@property (nonatomic,assign)LimitValidationType vLimitType;
//设置类型
- (void)setLimitValidationType:(LimitValidationType)validationType;
//最大长度
- (void)setLimitTextLength:(int)length;


@end
